package cn.hs.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

/**
 * @ClassName Question
 * @Description TODO
 * @Author wsh
 * @Date 2024年10月24日 15:29
 * @Version 1.0
 */
@Data

@JsonIgnoreProperties(value = "handler")
public class Question {
    private Integer id;
    private String title;
    private String content;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    private Integer userId;

    private User user;
}
